Skip to main content
Version: 2.0

Text Messages

Before You Start

You need to meet all the prerequisites listed in the Before You Start section of the documentation.

Constraints:

  • A text message can be a max of 4096 characters long.

Step 1: Make POST Request

Payload

{
"recipient_type": "individual",
"to": "xxxxx",
"type": "text",
"text": {
"body": "Dear kamran, your account balance is 1000"
},
"metadata": {
"messageId": "xxxxx",
"transactionId": "dsfsdfdfadgdfhh69665fd6",
"callbackDlrUrl": "http://xxx.com"
}
}

For more information on parameters, see:

Step 2: Check Your Response
The response example shows a sample response from the API request: Possible elements in responses includes,

  • Success Response
    Payload
{
"success": true,
"responseId": "1606887827245734233232332"
}

Note : Calback URL is a optional paramter . Please use when you want to change the default URL(configured through smartta). It will only chnage the domain name othere paratemters will be same as configurated in smartta.